package ooday05;

public class StaticFinalDemo {
    public static void main(String[] args) {
       // loo.PI = 3.1515;//变异错误，常量不能被改变
        System.out.println(loo.PI);//长航通过类名点来访问


        System.out.println(loo.num);
        System.out.println(loo.COUNT);
    }
}
class  loo{

    public static final int COUNT = 5;
    public static final int num = 5;


    public static final double PI = 3.1415926;
   // public static final int NUM;//编译错误，常量必须声明同时初始化
}
